#ps -ef | grep thin | awk '{print $2}'|xargs sudo kill -9
ps -ef | grep sidekiq | awk '{print $2}'|xargs sudo kill -9

sudo -u www-data bundle exec sidekiq -e production -d -l /var/www/discourse/log/sidekiq.log
sleep 5s
sudo -u www-data RUBY_GC_MALLOC_LIMIT=90000000 bundle exec thin restart -e production -s4 --socket /var/www/discourse/tmp/sockets/thin.sock
#sudo -u www-data RUBY_GC_MALLOC_LIMIT=90000000 bundle exec thin -C config/thin.yml restart
